package com.yugu.park.security.service;

import com.github.pagehelper.PageInfo;
import com.yugu.park.security.entity.TSysOperLog;
import com.yugu.util.SearchPage;

import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface TSysOperLogService {
    /**
     * 修改或添加
     * @param t
     */
    void addOrUpdate(TSysOperLog t);

    /**
     * 根据商品id删除 只做逻辑删除
     * @param id
     */
    void deleteById(String id);

    /**
     * 根据商品id查询
     * @param id
     * @return
     */
    TSysOperLog getById(String id);

    /**
     * 分页查询
     * @param search
     * @return
     */
    PageInfo<TSysOperLog> page(SearchPage<TSysOperLog> search);
}
